Duck typing

美 [dʌk ˈtaɪpɪŋ]英 [dʌk ˈtaɪpɪŋ]
  • 网络鸭子类型;鸭式辨型
Duck typingDuck typing
  1. It even honors duck typing , with static guarantees .

    它甚至还使用了鸭子类型,保证了静态安全。

  2. Language soft interfaces and duck typing

    语言软接口与鸭子类型

  3. Dynamic languages are said to use duck typing ; the Java language uses static typing .

    动态语言被认为是使用duck类型;Java语言使用静态类型。

  4. The caveats of duck typing in a static language

    在静态语言中使用duck类型的限制

  5. Duck typing : Learn more about duck typing in this Wikipedia article .

    Duck类型:在这篇Wikipedia文章中了解有关duck类型的更多信息。

  6. Originally , it seemed that " duck typing " is Ruby 's big advantage .

    首先,看来“ducktyping”是Ruby一大长处。

  7. Of particular interest is the way it handles late binding , more commonly known today as " duck typing " .

    其最能引起大家兴趣的地方在于它处理“晚绑定(latebinding)”的方式,现在我们通常称其为“ducktyping”。

  8. Duck typing techniques can be used in statically typed languages like C # , but it generally requires some tedious reflection code .

    Ducktyping技术能够应用在类似C这样的静态类型化语言中,但它通常需要实现一些冗长的反射代码。

  9. Perhaps it 's a case for duck typing , the principle that it doesn 't really matter what an object is , in terms of class and module , but only what it does .

    可能这就是ducktyping的一个例子,ducktyping所代表的原则是,无论对象属于什么类或者模块,关系都不大,关键在于它做些什么。

  10. Ruby uses what is affectionately referred to as " duck typing " & if it accepts a " quack " message , it must be a duck .

    Ruby使用所谓的“ducktyping”&也就是说,如果它接受“鸭叫”消息,那么它一定是鸭子。

  11. The concept behind duck typing , also known as late binding , is pretty simple ; if an object responds to all the methods a function is expected to call , that object can be passed to the function .

    Ducktyping背后的概念非常简单,就是所谓的迟绑定;如果对象具有某个函数希望调用的所有方法,就可以将这个对象传递给该函数。